package com.EAsystem.service;

import com.EAsystem.entity.Homework;
import com.github.pagehelper.PageInfo;

import java.util.List;

public interface HomeworkService {
    
    // 添加作业
    boolean addHomework(Homework homework);
    
    // 更新作业
    boolean updateHomework(Homework homework);
    
    // 删除作业
    boolean deleteHomework(Long id);
    
    // 根据ID查询作业
    Homework getHomeworkById(Long id);
    

    
    // 根据课程ID查询作业
    List<Homework> getHomeworksByCourseId(Long courseId);
    

    
    // 条件查询作业
    PageInfo<Homework> getHomeworksByConditionWithPage(Homework homework, int pageNum, int pageSize);
}